package com.sstir.doctor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanjunjun
 * @since 2021-01-15
 */
@TableName("user_info")
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserInfoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 用户难度-1:简单,2-中等,3-困难
     */
    private String userDiff;

    /**
     * 用户得分
     */
    private Integer userScore;

    /**
     * 创建时间
     */
    private LocalDateTime insertTime;

    @Override
    public String toString() {
        return "UserInfo{" +
            "id=" + id +
            ", userName=" + userName +
            ", userDiff=" + userDiff +
            ", userScore=" + userScore +
            ", insertTime=" + insertTime +
        "}";
    }
}
